package ex


interface ITest {
    fun test()
}

fun main(args: Array<String>) {
    val func2 = object : Function2<String, String, String>, ITest {
        override fun invoke(p1: String, p2: String): String {
            return p1 + p2
        }

        override fun test() {
            println("test")
        }
    }
}